import { createRouter, createWebHistory } from 'vue-router';
import HomePage from '../components/page/HomePage.vue';
import TaskManagerPage from '../components/page/TaskManagerPage.vue';
import UserManagerPage from '../components/page/UserManagerPage.vue';
import UseDirectionsPage from '../components/page/UseDirectionsPage.vue';

import TaskDetail from '../components/page/task/TaskDetail.vue';


const routes = [
    {
        path: '/HomePage',
        name: 'HomePage',
        component: HomePage
    },
    {
        path: '/TaskManagerPage',
        name: 'TaskManagerPage',
        component: TaskManagerPage
    },
    {
        path: '/UserManagerPage',
        name: 'UserManagerPage',
        component: UserManagerPage
    },
    {
        path: '/UseDirectionsPage',
        name: 'UseDirectionsPage',
        component: UseDirectionsPage
    },
    {
        path: '/TaskDetail',
        name: 'TaskDetail',
        component: TaskDetail
    }
];

const router = createRouter({
    history: createWebHistory(),
    routes
});

export default router;